/**
 * 
 */
package handwritten.gesture;

import java.io.Serializable;
import java.util.ArrayList;

import utility.math.Vector2D;

/**
 * @author tioz
 *
 */
public class GestureStatistic implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7384619216586418812L;
	// take into accounte the facte that the writting may not be precise.
	double sensibility = 0.1;
	
	
	/**
	 * 
	 */
	public GestureStatistic(Gesture g) {
		ArrayList<Double> pathDir;
		pathDir = g.pathDirection();
				
		ArrayList<Vector2D> inter = g.intersection(); 
		
		
		System.out.println("intersection");
		for(Vector2D v : inter)
		{
			System.out.println(v.getX()+"   "+v.getY());
		}
		
		System.out.println("path");
		
		/*ArrayList<Vector2D> path = g.getPath();
		for(Vector2D d: path)
		{
			System.out.println(d.getX() + "   " + d.getY());
		}*/
		
		System.out.println("path angles");
		for(Double d: pathDir)
		{
			System.out.print(d + " ");
			
		}
		System.out.println();
	}
	
	
}
